package com.itchen.web.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @author げっしょく
 * @date 2021/9/4
 */

@WebFilter("/.jsp")
public class Test1 implements Filter {
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("doFilter执行了");

        filterChain.doFilter(servletRequest,servletResponse);
    }

    public void destroy() {

    }
}
